import request from '@/utils/request'

export default {
  searchPage(currentPage, pageSize, collectDTO) {
    return request({
      url: `/collect/searchPage/${currentPage}/${pageSize}`,
      method: 'post',
      data: collectDTO
    })
  },

  deleteById(id) {
    return request({
      url: `/collect/deleteById/${id}`,
      method: 'post'
    })
  },

  deletePart(ids) {
    return request({
      url: `/collect/deletePart`,
      method: 'post',
      data: ids
    })
  },

  increase(collect) {
    return request({
      url: `/collect/insert`,
      method: 'post',
      data: collect
    })
  },

  revise(collect) {
    return request({
      url: `/collect/update`,
      method: 'post',
      data: collect
    })
  },

  searchById(id) {
    return request({
      url: `/collect/searchById/${id}`,
      method: 'get'
    })
  }
}

